<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
	
	<style>
		.td_c_l{
			width:121px;
		}
	</style>

 	<!-- 四壁基本信息 -->
  	<form class="cmxform" id="commentForm" method="post" action="project/decorateScheme/addDecorateVerify">
  		<!-- 房间类型 -->
  		<input type="text"  name="roomType"id="roomType1" value="${roomType}"   hidden="hidden"/>
  		<!-- 房间号 	预留-->
  		<input type="text" name="fkroomId" value="" hidden="hidden" />
  		<!-- 客户 	预留-->
  		<input type="text" name="fkcustomerId" hidden="hidden" />
  		<!-- 验收位置  0：四壁  1：顶   2：地面-->
  		<input type="text" name="verifySite" value="0" hidden="hidden" />
  		<!-- 房号、客户、方位  替换上面房号客户 -->
  		<div style="padding:10px 0px">
			<b style="padding:0px 50px 0px 0"><span>房号&nbsp;&nbsp;</span>
			<button class="btn btn-primary radius" type="submit">选择</button></b> <b><span>客户&nbsp;&nbsp;</span>
			<button class="btn btn-primary radius" type="submit">选择</button></b>
			<span id="direction_span">方位：
				<select class="js-example-basic-single" name="direction" id="id_label_multiple" >
				</select>
			</span>
			&nbsp;&nbsp;房屋类型：${roomType}
		</div>
  		
		<div>
			<div class="panel panel-default">
	   			<div class="panel-body ">
	   			
					<table cellpadding="10" cellspacing="5"  class="mytable">
						<tr>
			    			<td>
			    				<!-- 附件上传 -->
								<jsp:include page="../../p_utilePage/Article.jsp"></jsp:include>
			    			</td>
			    		</tr>
				    </table>
				</div>
			</div>
			
<!-- 			<fieldset >
		    	<legend style="border-bottom: 0px solid gray;width:120px">墙面装饰物</legend>
		    	<div id="" style="padding:20px;">
		    		<div class="style_l"><span>涂料</span> <span><input id="file-3" type="file" multiple=true></span></div>
		    		<div class="style_l"><span>壁纸 </span><span><input id="file-3" type="file" multiple=true></span></div>
		    		<div class="style_l"><span>软包 </span><span><input id="file-3" type="file" multiple=true></span></div>
		    		<div class="style_l"><span>木包</span> <span><input id="file-3" type="file" multiple=true></span></div>
		    		<div class="style_l"><span>玻璃</span> <span><input id="file-3" type="file" multiple=true></span></div>
		    	</div>
		    </fieldset>	 -->
		    		
		</div>
			
			<div style="width:100%;text-align:center; padding-top:20px"> 
				<button class="btn btn-primary radius" type="submit" > 保 存</button> 
				 <a class="btn btn-default radius" onClick="closeIframe('gridObj');"> 取 消 </a> 
		    	  <br/><br/>
	    	</div> 
		
		<script type="text/javascript">
			var $tr;
			$(function(){
				showWalls();
			})
			//隐藏字段
			function showWalls(){
				var roomType = '${roomType}';
				$tr=$("#commentForm table tr");
				if(roomType=="厨房"){
					var arr = ["电视接口","网络接口","电话接口"];
					for(var i=0;i<arr.length;i++){
						eachRemove(arr[i]);
					}
				}else if(roomType=="储物间"){
					var arr = ["电视接口","网络接口","电话接口","电源控制","热水器","抽油烟机"];
					for(var i=0;i<arr.length;i++){
						eachRemove(arr[i]);
					}
				}else{
					var arr = ["热水器","抽油烟机"];
					for(var i=0;i<arr.length;i++){
						eachRemove(arr[i]);
					}
				}
			}
			
			function eachRemove(arr){
				//for(var j=0;j<arr.length;i++){
					$tr.each(function(i,v){//before()
						var td=$(v).children("td").eq(0);
						var text=td.text();
						var $v=$(v);
						if(text==arr){
							$v.remove();
						}
					});
				//}
			}
		</script>
	</form>
	

